package com.ddstation.summarize.service;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddstation.common.model.InvsCheckCommonSchParModel;
import com.ddstation.summarize.mapper.SummarizeMapper;
import com.ddstation.summarize.model.SummarizeResModel;

@Service
public class SummarizeServiceImpl implements SummarizeService {
	
	@Override
	@Transactional(readOnly=true)
	public List<SummarizeResModel> searchInstitutions(
			InvsCheckCommonSchParModel p){
		
		return summarizeMapper.selectAllKindsOfList(p);
	}

	@Override
	public List<SummarizeResModel> searchInstitutions2(InvsCheckCommonSchParModel p) {
		return summarizeMapper.selectAllKindsOfList2(p);
	}

	@Inject private SummarizeMapper summarizeMapper;
}
